<?php

namespace App\Http\Helpers;

class StatusResponse
{
    public const OK = [0, '操作成功'];
    public const UNKNOWN_ERROR = [-1, '未知错误, 请联系系统管理员'];
    public const PERMISSION_REQUIRE = [401, '您无权进行此操作'];
    public const NOT_FIND_USER = [402, '无法获取用户信息！请尝试重新登录'];
    public const NOT_FOUND = [404, '无法找到目标对象'];
    public const NOT_OPENED = [403, '未开放的功能'];
    public const EMPTY_OBJECT = [404, '对象为空'];
    public const FORM_INCOMPLETE = [405, '表单不完整'];

    // 用户信息错误
    public const USER_PASSWORD_ERROR = [10000, '用户密码错误!'];
    public const USER_NOT_FOUND = [10001, '用户不存在'];
    public const CAN_NOT_REMOVE_SELF = [10002, '您无法删除您自己'];
    public const USER_EXIST = [10003, '用户已存在!'];

    // 评论操作错误
    public const IRREVERSIBLE_OPERATION = [20000, '不可逆的操作'];
}
